package daos;

import java.util.Date;

/**
 * News entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class News implements java.io.Serializable {

	// Fields

	private Integer newsId;
	private User user;
	private String newsTitle;
	private String newsContent;
	private String newsPublisher;
	private Date newsPublishTime;

	// Constructors

	/** default constructor */
	public News() {
	}

	/** full constructor */
	public News(User user, String newsTitle, String newsContent,
			String newsPublisher, Date newsPublishTime) {
		this.user = user;
		this.newsTitle = newsTitle;
		this.newsContent = newsContent;
		this.newsPublisher = newsPublisher;
		this.newsPublishTime = newsPublishTime;
	}

	// Property accessors

	public Integer getNewsId() {
		return this.newsId;
	}

	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getNewsTitle() {
		return this.newsTitle;
	}

	public void setNewsTitle(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public String getNewsContent() {
		return this.newsContent;
	}

	public void setNewsContent(String newsContent) {
		this.newsContent = newsContent;
	}

	public String getNewsPublisher() {
		return this.newsPublisher;
	}

	public void setNewsPublisher(String newsPublisher) {
		this.newsPublisher = newsPublisher;
	}

	public Date getNewsPublishTime() {
		return this.newsPublishTime;
	}

	public void setNewsPublishTime(Date newsPublishTime) {
		this.newsPublishTime = newsPublishTime;
	}

}